<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>新闻内容</title>
</head>
 <body>
        <p>⾸⻚/新闻/内容</p>
        <h1>${news.title}</h1>
        <p>关键字：${news.keywords},
            作者：${news.owner.nickname}，
            发布时间： ${news.pubtimeString}
        </p>
        <div>
            ${news.content}
        </div>
        <hr/>
        <h2>评论</h2>
        <div>
            <ul>
                <c:forEach items="${news.replys}" var="reply" varStatus="st">
                    <li><span>${reply.usersId}</span>
                        &nbsp;&nbsp;${reply.content} - ${reply.createTime}
                    </li>
                </c:forEach>
            </ul>
        </div>
 </body>
</html>
